package com.bill99.model;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class TableauProperties {

    @Value("${tableau.auth.signin.url}")
    private String url;
    @Value("${tableau.view.pic.uploadPath}")
    private String uploadPath;
    @Value("${tableau.auth.signin.name}")
    private String name;
    @Value("${tableau.auth.signin.password}")
    private String password;
    @Value("${tableau.auth.signin.viewId}")
    private String viewId;
    @Value("${tableau.auth.signin.contentUrl}")
    private String contentUrl;
    @Value("${tableau.email.templateId}")
    private String templateId;
    @Value("${tableau.sendPic.attachmentsPrefix}")
    private String attachmentsPrefix;
    @Value("${tableau.send.emailAddresses}")
    private String emailAddresses;
    @Value("${tableau.email.subject}")
    private String subject;
    @Value("${tableau.view.name1}")
    private String viewName1;

    public String getViewName1() {
        return viewName1;
    }

    public void setViewName1(String viewName1) {
        this.viewName1 = viewName1;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getViewId() {
        return viewId;
    }

    public void setViewId(String viewId) {
        this.viewId = viewId;
    }

    public String getContentUrl() {
        return contentUrl;
    }

    public void setContentUrl(String contentUrl) {
        this.contentUrl = contentUrl;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getAttachmentsPrefix() {
        return attachmentsPrefix;
    }

    public void setAttachmentsPrefix(String attachmentsPrefix) {
        this.attachmentsPrefix = attachmentsPrefix;
    }

    public String getEmailAddresses() {
        return emailAddresses;
    }

    public void setEmailAddresses(String emailAddresses) {
        this.emailAddresses = emailAddresses;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    @Override
    public String toString() {
        return "TableauProperties{" +
                "url='" + url + '\'' +
                ", uploadPath='" + uploadPath + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", viewId='" + viewId + '\'' +
                ", contentUrl='" + contentUrl + '\'' +
                ", templateId='" + templateId + '\'' +
                ", attachmentsPrefix='" + attachmentsPrefix + '\'' +
                ", emailAddresses='" + emailAddresses + '\'' +
                ", subject='" + subject + '\'' +
                ", viewName1='" + viewName1 + '\'' +
                '}';
    }
}